﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Microsoft.Xna.Framework;

namespace Labirinto_Magico
{
    public class GUILabel
    {
        public String mType;
        public Vector2 mPosition;
        public Vector2 mDimension;

        public GUILabel(String iType, Vector2 iPos, Vector2 iDimension)
        {
            mType = iType;
            mPosition = iPos;
            mDimension = iDimension;
        }
    }

    public class GUITimingLabel
    {
        public String mType;
        public Vector2 mPosition;
        public Vector2 mDimension;

        TimeSpan mTimePressed;

        public GUITimingLabel(String iType, Vector2 iPos, Vector2 iDimension)
        {
            mType = iType;
            mPosition = iPos;
            mDimension = iDimension;
        }

        public bool TimePassed(TimeSpan iTime, double iDuration)
        {
            if (mTimePressed.TotalSeconds == 0)
            {
                mTimePressed = iTime;
                return false;
            }
            double millSec = iTime.Subtract(mTimePressed).TotalSeconds;
            if (millSec > iDuration)
            {
                mTimePressed = new TimeSpan(0, 0, 0);
                return true;
            }
            return false;
        }
    }
}
